package is.glif.fenius.api;

public class TranslatorFactory {
    private Translator translator;
    private static TranslatorFactory instance;
    private TranslatorFactory() {
    }
    public static TranslatorFactory getInstance() {
        if (instance == null) {
            instance = new TranslatorFactory();
        }
        return instance;
    }

    public void setTranslator(Translator translator) {
        this.translator = translator;
    }
    public Translator getTranslator() throws FInternalFault {
        return translator;

    }

}
